home *** CD-ROM | disk | FTP | other *** search
- //
- // The Fusion Library Interface for DOS
- // Version 1.06c
- // Copyright (C) 1990, 1991, 1992
- // Software Dimensions
- //
- // BlazeClass
- //
-
- #include "fli.h"
-
- #ifdef __BCPLUSPLUS__
- #pragma hdrstop
- #endif
-
- #include <ctype.h>
- #include <string.h>
-
- //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
- //
- // QuickDisplay()
- //
- // Used with special menu or highlight strings (i.e. ~Open file)
- //
- //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-
- int BlazeClass::QuickDisplay(int X,int Y,int QuickColor,int NormalColor,
- char *QuickText)
- {
- if (!strchr(QuickText,'~'))
- {
- BlazeClass::operator()(X,Y) << NormalColor << QuickText;
- return 0;
- }
-
- int Remember=0;
-
- BlazeClass::operator()(X,Y) << NormalColor;
-
- while (*QuickText)
- {
- if (*QuickText!='~')
- *this << *QuickText++;
- else
- {
- if (*(QuickText+1))
- {
- *this << QuickColor
- << *(QuickText+1)
- << NormalColor;
-
- if (!Remember)
- Remember=*(QuickText+1);
-
- QuickText+=2;
- }
- }
- }
-
- Remember-=((islower(Remember))?32:0);
-
- return Remember;
- }
-